package com.shuwen.gcdj.bean.basicsRepair.request;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel
public class RepairAddReq {

    @ApiModelProperty(value = "区域",required = true)
    @NotNull(message = "区域不能为空")
    private Integer areaLocation;

    @ApiModelProperty(value = "设备id",required = true)
    @NotEmpty(message = "设备不能为空")
    private String equipmentId;
    //工单等级（1、一级工单，2、二级工单）
    @ApiModelProperty("工单等级")
    private Integer grade;

    @ApiModelProperty("专业")
    private Integer major;

    //报修来源（1、一保工单，2、二保工单，3、搭载部，4、预警报修）
    @ApiModelProperty("报修来源")
    private Integer soursce;

    @ApiModelProperty("部门")
    private String repairDepartment;

    @ApiModelProperty("报修部件信息")
    private List<RepairStructure> repairDetails;

    @ApiModelProperty("报修编号")
    public String repairCode;
}
